class Dog:

    def shout(self):
        self.name = "测试1"
        print(self.color+"的"+self.name)




d1 = Dog();
#d1.name="大黄"
d1.color= "黑色"
print(d1.name)
d1.shout()

